package com.lzh.chatnote.chat.service;

import com.lzh.chatnote.chat.domain.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzh.chatnote.chat.domain.vo.request.message.MessagePageReq;
import com.lzh.chatnote.chat.domain.vo.request.message.MessageSendReq;
import com.lzh.chatnote.chat.domain.vo.response.message.MessageResp;
import com.lzh.chatnote.common.domian.vo.response.CursorPageBaseResp;

import javax.validation.Valid;
import java.util.List;

/**
 * <p>
 * 消息表 服务类
 * </p>
 *
 * @author lzh
 * @since 2025-09-25
 */
public interface MessageService {

    CursorPageBaseResp<MessageResp> queryCursorPage(MessagePageReq messagePageReq);


    Long sendMsg(MessageSendReq messageSendReq, Long uuid);

    MessageResp getMsgResp(List<Message> messageList, Long uid);

    MessageResp buildSendMsgResp(Long msgId, Long sendUid);
}
